<?php

namespace app\admin\validate;

class Dictionary extends ValidateCore
{
    //验证规则
    protected $rule =   [
		'p_id' => [ 
			'require'
		],
		'title' => [ 
			'require',
		],
		'value' => [ 
			'require'
		],
		
    ];
    
    //提示信息
    protected $message  =   [
		'p_id.require' => '上级必填',
		'title.require' => '名称必填',
		'value.require' => '数值必填' ,
    ];
    
    //验证场景
    protected $scene = [
		'add' => [
			'p_id',
			'title',
			'value',
		],
		'edit' => [
			'p_id',
			'title',
			'value',
		] 
    ];
}